<style lang='scss' scoped>
	.login {
		.top {
			background-color: #87dce2;
			height: 200rpx;
		}

		.login_from {
			position: relative;
			margin-top: -40rpx;
			border-radius: 50rpx 50rpx 0 0;
			background-color: #f5f5f5;
			padding: 30px 35px 0 35px;
			box-sizing: border-box;

			.title {
				font-size: 40rpx;
				font-weight: 900;
				margin: 0 0 20rpx 0;
			}
		}
	}
</style>
<template>
	<view class='login'>
		<view class="top">
		</view>
		<view class="login_from">
			<view class="title">
				登陆
			</view>
			<myinput :obj="usernamea" v-model="username" @submit="btn"></myinput>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				usernamea: {
					placeholder: '请输入用户名'
				},
				username: ''
			}
		},
		onLoad(o) {},
		methods: {
			btn() {
				console.log(this.username);
			}
		}
	}
</script>
